<%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2021/3/19
  Time: 11:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<ul>
    <%!
        double pi=3.14;
        int calc(int a,int b){
            return a+b;
        }
    %>
 <%--   <jsp:useBean id=""/>--%>
  <%
      out.print(out instanceof java.io.Writer);
      out.print("<br/>");
      out.print(out.getClass().getName());
      out.print("<br/>");
      String []ar={"apple","桃子","香蕉","凤梨"};
      for(String s:ar){
  %>
     <li><%=s%></li>
<%}%>
</ul>
<h2>
    <%=calc(5,45)%>
</h2>
<h1>
    <%
        int r=calc(45,78);
    %>
    <%=r%>
</h1>
</body>
</html>
